<template>
	<view class="content">
		<view class="title" style="margin-top: 200rpx;">我们应该</view>
		<view class="title">怎么称呼您？</view>

		<view style="margin-top: 20rpx;">
			<input class="input" v-model="data.nick" type="text" placeholder=" 请输入昵称" />
		</view>

		<zy-register-bottom @next="next"></zy-register-bottom>
	</view>
</template>

<script>
	import RouteUtil from '@/main/common/RouteUtil.js';
	import CacheUtil from '@/main/common/CacheUtil';

	export default {
		data() {
			return {
				data: {}
			};
		},
		onLoad() {
			this.data = CacheUtil.getRegisterUser();
		},
		methods: {
			next() {
				if (!this.data.nick) {
					uni.$toast.show('请填写');
					return;
				}
				CacheUtil.setRegisterUser(this.data)
				RouteUtil.toRegister2()
			}
		}
	};
</script>

<style lang="scss">
	.content {
		width: 100wh;
		height: 100vh;
		margin: 0 50rpx;

		.title {
			font-weight: bold;
			font-size: 48rpx;
			color: #222;
		}

		.input {
			border-bottom: 1rpx solid #ccc;
			font-size: 32rpx;
			color: #555;
			line-height: 50rpx;
			padding: 20rpx 0;
		}

	}
</style>